import VueRouter from 'vue-router'
import Vue from 'vue'
import goods from '../goods/goods.vue'
import ratings from '../ratings/ratings.vue'
import seller from '../seller/seller.vue'

Vue.use(VueRouter)
// 为Vue配置router插件 1.引入插件 2 启用插件

export default new VueRouter({
    linkActiveClass: 'active',  
    routes: [   // 错误写了 单词，导致不对
          {
            path: '/goods',
            name: "goods",
            component: goods
          },
          {
            path: '/ratings',
            component: ratings,
            name: 'ratings'
          },
          {
            path: '/seller',
            component: seller,
            name: 'seller'
          }
    ]
})